# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-guessit
pkgver=3.3.1
pkgrel=1
pkgdesc="Library for guessing information from video filenames"
url="https://pypi.org/project/guessit/"
arch="noarch"
license="LGPL-3.0-only"
depends="python3 py3-rebulk py3-babelfish py3-dateutil py3-six py3-setuptools"
makedepends="py3-wheel py3-pytest-runner"
checkdepends="py3-pytest py3-pytest-benchmark py3-yaml"
source="https://files.pythonhosted.org/packages/source/g/guessit/guessit-$pkgver.tar.gz"
builddir="$srcdir/guessit-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/guessit/test
}

sha512sums="
42c87525ea2d9c808e30b50db674862f5362f26b95ba5e6bc163df03a261d9b24daf4b4d525677d3e6d53e8e7f637c3d9e0ba3f25f4397e0658b618f50a3248b  guessit-3.3.1.tar.gz
"
